package com.jet.auth.domain.dto;

import com.jet.core.annotation.Password;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author dcl
 * @since 2025/6/30 9:29
 */
@ApiModel
@Data
public class LoginPasswordDto {

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号", required = true)
    @NotBlank(message = "手机号不能为空")
    private String phone;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码", required = true)
    @NotBlank(message = "密码不能为空")
    @Password
    private String password;

    /**
     * 平台类型
     */
    @ApiModelProperty(value = "平台类型", required = true)
    @NotNull(message = "平台类型不能为空")
    private Integer platform;
}
